<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import {
    psScrpit,
    psEvent
  } from 'adobe/CSInterface'

if(window.cep){
  //持久化运行
  psEvent.type = "com.adobe.PhotoshopPersistent"; //注册持久化运行事件
  psEvent.scope = "APPLICATION";
  psEvent.extensionId = psScrpit.getExtensionID();
  psScrpit.dispatchEvent(psEvent);
  
  //载入更新文件
  var extensionRoot = psScrpit.getSystemPath("extension")+"/jsx/update.jsx"; // 这里是指插件目录下的 jsx 文件夹，可自行设为任意目录
  psScrpit.evalScript('$.evalFile("' + extensionRoot + '")',function(){
    console.log('load JSX update success!!!!!!!!!');
  });
}


export default {
  name: 'App'
}
</script>
